<?php
namespace app\wechat\controller;

use app\base\controller\Curl;
use app\base\controller\Rsa;
use app\base\model\we\WeFans;
use app\base\model\we\WeLocation;
use app\base\model\we\WeMessage;
use app\base\model\we\WeTemplateMessage;
use thirdapi\tp_wechat\WechatApi;
use thirdapi\tp_wechat\Wechat;
use think\Db;
use think\Exception;
use think\Cache;
use think\Log;


/**
 * 前台通用控制器
 * 主要获取首页聚合数据
 */
class PublicController extends CommonController {
    public function _initialize()
    {
    }

    public function header(){
        return $this->fetch('header');
    }

    public function error(){
        $this->assign([
            'errorMsg' => '非法操作'
        ]);
        return $this->fetch('error');
    }
}